<extend name="Public/base"/>
<block name="head">
	<link href="__MOBILE__/css/goods.css" rel="stylesheet" />
</block>
<block name="body">
	
    <div class="container">
        <!--items start-->
      
            	<div class="row">
                    <a class="show_big buy" title="{$goods['name']}">
                        <img class="img-responsive" alt="{$goods['seo_title']}" src="{$goods['pic_url']}" >
                    </a>
                </div>
                <div class="price-info row">
                    <h4 class="title">{$goods['name']}</h4>
                    <div class="col-xs-12 price">
                        <span class="col-xs-8"> ￥{$goods['price']}</if>
                           <del>（原价：{$goods['market_price']}）</del>
                        </span>
                        <span class="col-xs-4">月销:{$goods['volume']}
                        </span>
                    </div>
                    <div class="col-xs-6">
                 	   <a class="go_btn buy fl" href="javascript:;" onclick="favor({$goods['id']})">
                            <em class="icon icon-k"></em>收藏</a> 
                            
                    </div>
                    <div class="col-xs-6">
                    	<notempty name="goods.click_url">
                    		 <a class="go_btn buy fl"  href="{$goods['click_url']}" target="_blank" rel="nofollow">
                            	<span>去购买&gt;&gt;</span>
                       		 </a>
                    	<else/>
                    		 <a class="go_btn buy fl"  href="{:U('Goods/goBuy',array('id'=>$goods['num_iid']))}" target="_blank" rel="nofollow">
                            <span>去购买&gt;&gt;</span>
                        </a>
                    	</notempty>
                       
                    </div>
                </div>
                <div class="content">
                   
                     <h3>商品描述</h3>
                     <div class="info_s1 clear" id='gdetial'>
                         <if condition="$goods['item_body']">
                             {$goods['item_body']}
                         <else/>
                       
                          <script>
								var num_iid = "<php>echo $goods['num_iid']</php>";
								$.get('{:U("Goods/ajGetGoodsDetial")}',{num_iid:num_iid},function(data){
									if(data.status){
										$("#gdetial").html(data.content);
									}else{
										location.href="{:U('Goods/goBuy',array('id'=>$goods['num_iid']))}";
										updateAlert('即将为您跳转爱淘宝');
										setTimeout(function(){
											$('#top-alert').find('button').click();
					                       location.onload();
					                    },1500);
									}
									
									
								});
                         </script>
                          		   商品详情加载中，请稍等...
                         </if>
                     </div>
                       
                   
                </div>
            
        
    </div>
    <!-- /主体 -->
  
    <!--淘点金代码-->
    <script type="text/javascript">
    (function(win,doc){
        var s = doc.createElement("script"), h = doc.getElementsByTagName("head")[0];
        if (!win.alimamatk_show) {
            s.charset = "utf8";
            s.async = true;
            s.src = "http://a.alimama.cn/tkapi.js";
            h.insertBefore(s, h.firstChild);
        };
        var o = {
            pid: "{:C('PID')}",/*推广单元ID，用于区分不同的推广渠道*/
            appkey: "{:C('APP_KEY')}",/*通过TOP平台申请的appkey，设置后引导成交会关联appkey*/
            unid: "",/*自定义统计字段*/
            type: "click" /* click 组件的入口标志 （使用click组件必设）*/
        };
        win.alimamatk_onload = win.alimamatk_onload || [];
        win.alimamatk_onload.push(o);
    })(window,document);
    </script>

</block>
<block name="script">
	<script>
	$(function(){
		 heightlight_bottom_nav("{:U('index')}"); 
	});
	</script>
</block>

